package com.common.autocode.mysql;

import java.util.List;

public class ColumnData {

	public static final String OPTION_REQUIRED = "required:true";
	public static final String OPTION_NUMBER_INSEX = "precision:2,groupSeparator:','";
	private String columnName;
	private String dataType;
	private String columnComment;
	private String columnType;
	private String charmaxLength = "";
	private String nullable;
	private String scale;
	private String precision;
	private String classType = "";
	private String optionType = "";
	private String primary;
	private String tableComment;
	private String tableName;
	
	public ColumnData() {
		super();
	}

	public ColumnData(String columnName, String dataType) {
		super();
		this.columnName = columnName;
		this.dataType = dataType;
	}

	public String getTableComment() {
		return tableComment;
	}

	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	public void setTableComment(String tableComment) {
		this.tableComment = tableComment;
	}

	public String getPrimary() {
		return primary;
	}

	public void setPrimary(String primary) {
		this.primary = primary;
	}

	public String getColumnName() {
		return columnName;
	}

	public void setColumnName(String columnName) {
		this.columnName = columnName;
	}

	public String getDataType() {
		return dataType;
	}

	public void setDataType(String dataType) {
		this.dataType = dataType;
	}

	public String getColumnComment() {
		return columnComment;
	}

	public void setColumnComment(String columnComment) {
		this.columnComment = columnComment;
	}

	public String getColumnType() {
		return columnType;
	}

	public void setColumnType(String columnType) {
		this.columnType = columnType;
	}

	public String getCharmaxLength() {
		return charmaxLength;
	}

	public void setCharmaxLength(String charmaxLength) {
		this.charmaxLength = charmaxLength;
	}

	public String getNullable() {
		return nullable;
	}

	public void setNullable(String nullable) {
		this.nullable = nullable;
	}

	public String getScale() {
		return scale;
	}

	public void setScale(String scale) {
		this.scale = scale;
	}

	public String getPrecision() {
		return precision;
	}

	public void setPrecision(String precision) {
		this.precision = precision;
	}

	public String getClassType() {
		return classType;
	}

	public void setClassType(String classType) {
		this.classType = classType;
	}

	public String getOptionType() {
		return optionType;
	}

	public void setOptionType(String optionType) {
		this.optionType = optionType;
	}

	@Override
	public String toString() {
		return "ColumnData [columnName=" + columnName + ", dataType=" + dataType + ", columnComment=" + columnComment
				+ ", columnType=" + columnType + ", charmaxLength=" + charmaxLength + ", nullable=" + nullable
				+ ", scale=" + scale + ", precision=" + precision + ", classType=" + classType + ", optionType="
				+ optionType + ", primary=" + primary + "]";
	}

}
